#!/usr/bin/make -f

include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk

JAVA_HOME = /usr/lib/kaffe

DEB_ANT_BUILD_TARGET = build
DEB_ANT_INSTALL_TARGET = install
DEB_ANT_CLEAN_TARGET = clean
DEB_ANT_ARGS += -Dprefix=/usr -Ddestdir=$(DEB_DESTDIR)

install/squareness::
	mv $(DEB_DESTDIR)/usr/share/squareness/squareness.jar \
	  $(DEB_DESTDIR)/usr/share/java/squareness-$(DEB_UPSTREAM_VERSION).jar
	ln -s squareness-$(DEB_UPSTREAM_VERSION).jar \
	  $(DEB_DESTDIR)/usr/share/java/squareness.jar
	rmdir $(DEB_DESTDIR)/usr/share/squareness

